﻿using Domain.Entity.System_setting;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EFCore.Configer.System_setting
{
    public class Emp_roleConfiger : IEntityTypeConfiguration<Employee_role>
    {
        public void Configure(EntityTypeBuilder<Employee_role> builder)
        {
            builder.ToTable(nameof(Employee_role));
            builder.HasKey(e => e.Employee_role_id);
            builder.Property(e => e.Employee_role_id).HasColumnType("bigint");
            builder.Property(e => e.Employee_id).HasColumnType("bigint");
            builder.Property(e => e.Role_id).HasColumnType("bigint");
        }
    }
}
